package lambada;

import java.io.File;
import java.io.FileFilter;

public class LambdaDemo2 {
    public static void main(String[] args) {
        FileFilter filter = new FileFilter() {
            @Override
            public boolean accept(File file){
                return file.getName().endsWith(".");
            }
        };
        FileFilter filter1 = file -> file.getName().endsWith(".");
        System.out.println(filter1);
    }
}
